package com.example.demo.controller;

import com.example.demo.base.baseController;
import com.example.demo.entity.Auth;
import com.example.demo.service.AuthService;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author 三石
 *
 */
@RestController
@RequestMapping("/auth")
public class AuthController extends baseController<AuthService, Auth> {
    @GetMapping("/menu")
    public List<Auth> menu(@RequestParam("username") String username  ){
        return baseService.getMenu(username);
    }
    @GetMapping("/topMenu")
    public List<Auth> topMenu(@RequestParam("username") String username  ){
        return baseService.getTopMenu(username);
    }
}
